<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" content="text/html"></meta>
<title>Insert title here</title>
<link th:href="@{bootstrap/css/bootstrap.css}" rel="stylesheet"></link>
<script type="text/javascript" th:src="@{jquery-1.12.4.js}"></script>
<script type="text/javascript" th:src="@{bootstrap/js/bootstrap.min.js}"></script>
</head>
<body>


	<div th:if="${not #lists.isEmpty(user)}">
		<div class="panel panel-primary">
			<div class="panel-heading">
				<h3 class="panel-title">列表</h3>
			</div>
		</div>
		
		<div class="panel-body">
			<ul class="list-group">
				<li class="list-group-item" th:each="user:${user}">
					<span th:text="${user.id}"></span>
					<span th:text="${user.userName}"></span>
					<span th:text="${user.passWord}"></span>
					<span th:text="${user.userSex}"></span>
				</li>
			</ul>
		</div>
		
	</div>
	
	<script th:inline="javascript">
		var u = [[${u}]];
		console.log(u.nickName);
	</script>
	

</body>
</html>